<html>
<head>
<title>Country list ${start} - ${start + max}</title>
</head>
<body onload="">
	<content tag="header"> </content>
	<content tag="footer">
	<g:jasperReport 
 jasper="report1" 
 format="PDF,HTML,CSV,XLS,RTF,ODT,ODS,DOCX,XLSX,PPTX"  name="Bands"> 
 
 <br> 
 Your name: <input type="text" name="name"/> 
 <br> 
 Title: <input type="text" name="title"/> 
</g:jasperReport>
	</content>

	<content tag="menu"> </content>


	<table border="2">
		<tr>
			<th><g:message code="default.ID.label" /></th>
			<th><g:message code="default.code.label" /></th>
			<th><g:message code="default.name.label" /></th>
			<th><g:message code="default.delete.label" /></th>
			<th><g:message code="default.edit.label" /></th>

		</tr>
		<g:each in="${countries}">
			<tr>
				<td><g:link action="show" id="${it.id}">
						${it.id}
					</g:link></td>
				<td>
					${it.code}
				</td>
				<td>
					${it.name}
				</td>
				<td><g:link action="deleteCoun" id="${it.id}"  ><g:message code="default.delete.label" /></g:link></td>
				<td><g:link action="editCoun" id="${it.id}"  ><g:message code="default.edit.label" /></g:link></td>
			</tr>
		</g:each>
	</table>
	<g:link action="create" id="${it.id}">Create</g:link>
    <g:link action="index"params="[max: max, start:start-max]"> Previous </g:link> 	
	<g:link	action="index" params="[max: max, start:start+max]"> Next </g:link> <br>


</body>
</html>

<!--  
<h2>Countries</h2>
<g:if test="${flash.notice}">
	${flash.notice}
</g:if>
<g:if test="${flash.error}">
	${flash.error}
</g:if>
<table>
	<tr>
		<th>ID</th>
		<th>Code</th>
		<th>Name</th>
		
	</tr>
	<g:each in="${countries}">
		<tr>
			<td>
				<g:link action="show" id="${it.id}">${it.id}</g:link>
			</td>
			<td>
				${it.code}
			</td>
			<td>
				${it.name}
			</td>
			

		</tr>
	</g:each>
</table>
<g:link action="index" params="[max: max, start:start-max]"> Next </g:link>
<g:link action="index" params="[max: max, start:start+max]"> Previous </g:link><br>
-->
<!-- 
<img src="${createLinkTo(dir: 'images', file: 'springsource.png')}" />
<img src="<g:createLinkTo dir="images" file="springsource.png" />" />

 -->
<!--  
<h2>Countries</h2>
<g:if test="${flash.notice}">
	${flash.notice}
</g:if>
<g:if test="${flash.error}">
	${flash.error}
</g:if>
<table>
	<tr>
		<th>ID</th>
		<th>Code</th>
		<th>Name</th>
	</tr>
	<g:each in="${countries}">
		<g:render template="country" model="[country: it]" />
	</g:each>
</table>
-->